import { createApp } from 'vue';
//从pinia导入createPinia 这个方法  作用：创建一个pinia(store 仓库)对象
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import App from './App.vue';
import router from './router';
import axios from 'axios';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'


//axios的全局配置
axios.defaults.baseURL = 'http://localhost:5041';

const app = createApp(App);

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

app.use(pinia);
app.use(router);
app.use(ElementPlus, {
  locale: zhCn,
})

app.mount('#app');
